package com.xing.order.client;


import com.xing.commonutils.user.UcenterMemberOrder;
import com.xing.order.client.impl.EduClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

//因为我这不是在本地启动的，是在远程服务器上启动的，所以要指定nacos上的ip地址和端口号

@Component
@FeignClient(value = "service-ucenter",url = "172.29.12.23:8160")
public interface UcenterClient {

    //根据用户id获取客户信息
    @PostMapping("educenter/member/getUserInfoOrder/{id}")

    //get请求
    //UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);
    //错在post请求，不用指定id的值
     UcenterMemberOrder getUserInfoOrder(@PathVariable String id);

}
